<?php
namespace app\index\small;

use app\common\Small;

class Left extends Small
{
    public function index()
    {
        //获取所有顶级分类
        $assign['categories'] = model('Category')->where("pid", 0)->select()->toArray();
        $this->assign($assign);
        return $this->fetch();
    }
}